package eu.irreality.dai.gameplay.world;

import java.util.ArrayList;
import java.util.List;

import eu.irreality.dai.world.level.Level;

/**
 * A Dungeon is a place in the game world that contains one or more Levels
 * (typically connected by staircases).
 * 
 */
public class Dungeon
{

    /** Short name to identify the dungeon. */
    private String identifier;

    /** Full dungeon name. */
    private String name;

    /** Dungeon level placeholders */
    private List<LevelDescriptor> levels = new ArrayList<LevelDescriptor>();

    public LevelDescriptor getLevelDescriptor(int i)
    {
	return levels.get(i);
    }

    public void addLevelDescriptor(LevelDescriptor ld)
    {
	levels.add(ld);
    }

    public Level getLevel(int i)
    {
	return levels.get(i).getLevel();
    }

    public int getNumLevels()
    {
	return levels.size();
    }

}
